"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router } = app;
  // 用户信息
  require("./router/user")(app);
  // 请求追踪
  require("./router/reqLog")(app);
  // 菜单
  require("./router/menu")(app);
  // 租户
  require("./router/lessee")(app);
  // 登录日志
  require("./router/loginLog")(app);
  // 首页概览
  require("./router/overview")(app);

  // // 批量删除信息
  // router.delete(
  //   "/system/lessee/batchDelete",
  //
  // middleware.adminReqLog(),
  //   controller.system.lessee.batchDelete
  // );
  router.redirect("/", "/swagger-ui.html", 302);
};
